package school.xauat.offershow.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import school.xauat.offershow.pojo.Entry;

import java.util.List;

public interface EntryMapper extends BaseMapper<Entry> {
    List<Entry> list();

    int insertEntry(Entry entry);

    List<Entry> selectByCol(String col, String value, String order);

    List<Entry> selectByParams(Integer business_id, Integer education_id);

    int insertStars(int user_id, Integer entry_id);

    List<Entry> selectByUserId(int user_id, String order);

    int deleteStars(Integer user_id, Integer entry_id);
}
